import axios from 'axios'
import request from '@/utils/request'
const requests = axios.create({
  baseURL: '/api',
  timeout: 5000,
})
//获取验证码
//URL:/api/user/passport/sendCode/{phone}  method:get
export const reqSendCode = (phone) => requests({ url: `/user/passport/sendCode/${phone}`, method: 'get' })

//注册
//url:/api/user/passport/register  method:post    phone code password
export const reqUserRegister = (data) => requests({ url: '/user/passport/register', data, method: 'post' })

export default request;